/*
 * @Author: byron
 * @Date: 2021-10-22 21:16:26
 * @LastEditTime: 2021-12-28 15:13:18
 */
import { request } from '../http'

/// 登录
export const login = (data) => request.post('/login', data)
// 删除用户
export const deleteUser = (id) => request.delete(`/user/delete/${id}`)
export const register = (data) => request.post(`/register`, data)
// 获取用户列表
export const getUserList = (params) => request.get('/user/userList', { params })
// 更新用户状态
export const updateUserStatus = (data) =>
    request.put(`/user/updateStatus`, data)
// 编辑用户
export const editUser = (data) => request.put(`/user/update`, data)
